package com.gimi.cloud.bbp.merchantZone.consumer.feign;

import java.util.Map;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.gimi.cloud.bbp.merchantZone.consumer.feign.config.FeignMultipartSupportConfig;

import feign.Headers;

/**
 * 
 * @author hetianshou
 * @Version 1.0
 * @Description Ueditor编辑器feign
 * @create 2018-02-05
 */
@FeignClient(name = "bbp-merchantZone-service",configuration = FeignMultipartSupportConfig.class)
public interface UeditorFeignService {
	
	@Headers({"Content-Type: mutipart/form-data","Accept: application/json"})
    @RequestMapping(value = "/ueditor/action", method = RequestMethod.POST)
    String ueditorAction(@RequestParam("params") Map<String,String> params,MultiValueMap mutipartfiles);
	
}
